package com.alibaba.otter.manager.biz.config.meta.dal.dataobject;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigInteger;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serial;

/**
 * 表结构记录表快照表 实体类。
 *
 * @author LCH
 * @since 2024-09-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "meta_snapshot")
public class MetaSnapshotDO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id(keyType = KeyType.Auto)
    private BigInteger id;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModified;

    /**
     * 通道名称
     */
    private String destination;

    /**
     * binlog文件名
     */
    private String binlogFile;

    /**
     * binlog偏移量
     */
    private Long binlogOffset;

    /**
     * binlog节点id
     */
    private String binlogMasterId;

    /**
     * binlog应用的时间戳
     */
    private Long binlogTimestamp;

    /**
     * 表结构数据
     */
    private String data;

    /**
     * 额外的扩展信息
     */
    private String extra;

}
